/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sigeris;

import java.awt.ComponentOrientation;
import java.io.File;
import java.io.IOException;
import javax.swing.JFileChooser;

/**
 *
 * @author lenin
 */
public class UISigeris extends javax.swing.JFrame {

    /**
     * Creates new form UISigeris
     */
    public UISigeris() {
        info=new Information();
        sigeris=new SIGERIS();
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        mainjPanel = new javax.swing.JPanel();
        leftjPanel = new javax.swing.JPanel();
        buttonsjPanel = new javax.swing.JPanel();
        runjButton = new javax.swing.JButton();
        netjButton = new javax.swing.JButton();
        clearEvidenceButton = new javax.swing.JButton();
        netjButton2 = new javax.swing.JButton();
        jLabel16 = new javax.swing.JLabel();
        locationjText = new javax.swing.JTextField();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jInternalFrame1 = new javax.swing.JInternalFrame();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPane4 = new javax.swing.JScrollPane();
        pictureContainer = new javax.swing.JEditorPane();
        setSatelital();
        jScrollPane3 = new javax.swing.JScrollPane();
        mapContainer = new javax.swing.JEditorPane();
        setMapa();
        jScrollPane5 = new javax.swing.JScrollPane();
        googleMaps = new javax.swing.JEditorPane();
        String urlgm="<html><iframe width=\"425\" height=\"350\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http://maps.google.es/?ie=UTF8&amp;ll=-16.411222,-71.53121&amp;spn=0.047342,0.084028&amp;t=m&amp;z=14&amp;vpsrc=6&amp;output=embed\"></iframe><br /><small><a href=\"http://maps.google.es/?ie=UTF8&amp;ll=-16.411222,-71.53121&amp;spn=0.047342,0.084028&amp;t=m&amp;z=14&amp;vpsrc=6&amp;source=embed\" style=\"color:#0000FF;text-align:left\">Ver mapa más grande</a></small></html>";
        googleMaps.setContentType("text/html");
        googleMaps.setText(urlgm);
        jPanel9 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        locationjEditor = new javax.swing.JEditorPane();
        jPanel3 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        structurejEditor = new javax.swing.JEditorPane();
        jPanel14 = new javax.swing.JPanel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        claseEstructuraCombo = new javax.swing.JComboBox();
        jScrollPane12 = new javax.swing.JScrollPane();
        pisoAreaList = new javax.swing.JList();
        cimiento1Radio = new javax.swing.JRadioButton();
        cimiento2Radio = new javax.swing.JRadioButton();
        desplazamientoCombo = new javax.swing.JComboBox();
        setStructureEvidenceButton = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        quakejEditor = new javax.swing.JEditorPane();
        jPanel15 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jScrollPane10 = new javax.swing.JScrollPane();
        magnitudTerremotoList = new javax.swing.JList();
        distanciaMuyAlejadoRadio = new javax.swing.JRadioButton();
        distanciaAlejadoRadio = new javax.swing.JRadioButton();
        distanciaCercanoRadio = new javax.swing.JRadioButton();
        jScrollPane11 = new javax.swing.JScrollPane();
        pgaList = new javax.swing.JList();
        demandaSismicaCompletoRadio = new javax.swing.JRadioButton();
        demandaSismicaSeveroRadio = new javax.swing.JRadioButton();
        demandaSismicaModeradoRadio = new javax.swing.JRadioButton();
        demandaSismicaLigeroRadio = new javax.swing.JRadioButton();
        setQuakeEvidenceButton = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        landjEditor = new javax.swing.JEditorPane();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane9 = new javax.swing.JScrollPane();
        tipoSueloList = new javax.swing.JList();
        jLabel2 = new javax.swing.JLabel();
        capacidadPortante1Radio = new javax.swing.JCheckBox();
        capacidadPortante2Radio = new javax.swing.JCheckBox();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        limiteLiquido1Radio = new javax.swing.JCheckBox();
        limiteLiquido2Radio = new javax.swing.JCheckBox();
        contenidoArcillaCombo = new javax.swing.JComboBox();
        licuefaccionCombo = new javax.swing.JComboBox();
        respuestaSueloLicuefaccionRadio = new javax.swing.JRadioButton();
        respuestaSueloAmplificacionRadio = new javax.swing.JRadioButton();
        setLandEvidenceButton = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        socSatelital = new javax.swing.JLabel();
        prevTableButton = new javax.swing.JButton();
        nextTableButton = new javax.swing.JButton();
        jScrollPane15 = new javax.swing.JScrollPane();
        sicFisicoText1 = new javax.swing.JEditorPane();
        jScrollPane8 = new javax.swing.JScrollPane();
        socSatelitalText = new javax.swing.JEditorPane();
        jPanel17 = new javax.swing.JPanel();
        socFisico = new javax.swing.JLabel();
        prevImagButton = new javax.swing.JButton();
        nextImagButton = new javax.swing.JButton();
        jScrollPane16 = new javax.swing.JScrollPane();
        socFisicoText = new javax.swing.JEditorPane();
        jPanel7 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jScrollPane13 = new javax.swing.JScrollPane();
        ResultEditor = new javax.swing.JEditorPane();
        riesgoInsignificanteBar = new javax.swing.JProgressBar();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        riesgoLigeroBar = new javax.swing.JProgressBar();
        jLabel22 = new javax.swing.JLabel();
        riesgoModeradoBar = new javax.swing.JProgressBar();
        jLabel23 = new javax.swing.JLabel();
        riesgoSeveroBar = new javax.swing.JProgressBar();
        riesgoTotalBar = new javax.swing.JProgressBar();
        jLabel24 = new javax.swing.JLabel();
        jPanel20 = new javax.swing.JPanel();
        jScrollPane14 = new javax.swing.JScrollPane();
        evalTextEditor = new javax.swing.JEditorPane();
        jPanel8 = new javax.swing.JPanel();
        ButtonMapa = new javax.swing.JButton();
        loadjButton = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        menuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        openMenuItem = new javax.swing.JMenuItem();
        saveMenuItem = new javax.swing.JMenuItem();
        saveAsMenuItem = new javax.swing.JMenuItem();
        exitMenuItem = new javax.swing.JMenuItem();
        editMenu = new javax.swing.JMenu();
        cutMenuItem = new javax.swing.JMenuItem();
        copyMenuItem = new javax.swing.JMenuItem();
        pasteMenuItem = new javax.swing.JMenuItem();
        deleteMenuItem = new javax.swing.JMenuItem();
        helpMenu = new javax.swing.JMenu();
        contentsMenuItem = new javax.swing.JMenuItem();
        aboutMenuItem = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        mainjPanel.setPreferredSize(new java.awt.Dimension(615, 667));

        leftjPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        runjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/run-ico.png"))); // NOI18N
        runjButton.setToolTipText("Ejecutar");
        runjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                runjButtonActionPerformed(evt);
            }
        });

        netjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/ico_ver.gif"))); // NOI18N
        netjButton.setToolTipText("Mostrar Red Bayesiana");
        netjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                netjButtonActionPerformed(evt);
            }
        });

        clearEvidenceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/sismo.png"))); // NOI18N
        clearEvidenceButton.setToolTipText("Limpiar Evidencias");
        clearEvidenceButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                clearEvidenceButtonMouseEntered(evt);
            }
        });
        clearEvidenceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clearEvidenceButtonActionPerformed(evt);
            }
        });

        netjButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/asignar.png"))); // NOI18N
        netjButton2.setToolTipText("Asignar Evidencia");
        netjButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                netjButton2ActionPerformed(evt);
            }
        });

        jLabel16.setText("Location");

        locationjText.setText("Socabaya,+Arequipa,+Peru");

        javax.swing.GroupLayout buttonsjPanelLayout = new javax.swing.GroupLayout(buttonsjPanel);
        buttonsjPanel.setLayout(buttonsjPanelLayout);
        buttonsjPanelLayout.setHorizontalGroup(
            buttonsjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonsjPanelLayout.createSequentialGroup()
                .addComponent(runjButton, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(netjButton, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(clearEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(netjButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(111, 111, 111)
                .addComponent(jLabel16)
                .addGap(18, 18, 18)
                .addComponent(locationjText, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );
        buttonsjPanelLayout.setVerticalGroup(
            buttonsjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonsjPanelLayout.createSequentialGroup()
                .addGroup(buttonsjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(netjButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(runjButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(netjButton, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
                    .addComponent(clearEvidenceButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(buttonsjPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(buttonsjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(locationjText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel16))))
                .addContainerGap())
        );

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/my_Logo.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(143, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 628, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(122, 122, 122))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 443, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(67, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("SIGERIS", jPanel1);

        jInternalFrame1.setTitle("Location Quake");
        jInternalFrame1.setVisible(true);

        jTabbedPane1.setPreferredSize(new java.awt.Dimension(450, 470));

        pictureContainer.setPreferredSize(new java.awt.Dimension(450, 470));
        jScrollPane4.setViewportView(pictureContainer);

        jTabbedPane1.addTab("Satelital", jScrollPane4);

        jScrollPane3.setViewportView(mapContainer);

        jTabbedPane1.addTab("Mapa", jScrollPane3);

        jScrollPane5.setViewportView(googleMaps);

        jTabbedPane1.addTab("Google Maps", jScrollPane5);

        javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());
        jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
        jInternalFrame1Layout.setHorizontalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
        );
        jInternalFrame1Layout.setVerticalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 534, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Info"));
        jPanel9.setToolTipText("Info");
        jPanel9.setName("Info"); // NOI18N

        String urlu=info.getInfo("location");
        locationjEditor.setContentType("text/html");
        locationjEditor.setText(urlu);
        jScrollPane1.setViewportView(locationjEditor);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 513, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Location", jPanel2);

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Info"));
        jPanel10.setToolTipText("Info");
        jPanel10.setName("Info"); // NOI18N

        String urls=info.getInfo("structure");
        structurejEditor.setContentType("text/html");
        structurejEditor.setText(urls);
        jScrollPane2.setViewportView(structurejEditor);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "Building Characteristics"));

        jLabel12.setText("Clase Estructura");

        jLabel13.setText("Piso Area");

        jLabel14.setText("Cimiento");

        jLabel15.setText("Desplazamiento");

        claseEstructuraCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select", "EC01", "EC02", "EC03", "EC04", "EC05", "EC06", "EC07", "EC08", "EC09", "EC10", "EC11", "EC12", "EC13", "EC14", "EC15", "EC16" }));

        pisoAreaList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Ninguno", "PA01", "PA02", "PA03", "PA04", "PA05", "PA06", "PA07", "PA08", "PA09" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        pisoAreaList.setSelectedIndex(0);
        jScrollPane12.setViewportView(pisoAreaList);

        cimiento1Radio.setText("CI01");
        cimiento1Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cimiento1RadioActionPerformed(evt);
            }
        });

        cimiento2Radio.setText("CI02");
        cimiento2Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cimiento2RadioActionPerformed(evt);
            }
        });

        desplazamientoCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select", "DE01", "DE02", "DE03", "DE04" }));

        setStructureEvidenceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/setevidence.gif"))); // NOI18N
        setStructureEvidenceButton.setToolTipText("Ingresar Evidencia");
        setStructureEvidenceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                setStructureEvidenceButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 126, Short.MAX_VALUE)
                        .addComponent(jLabel15)
                        .addGap(178, 178, 178))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel13)
                            .addComponent(jLabel12))
                        .addContainerGap(341, Short.MAX_VALUE))))
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(claseEstructuraCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(setStructureEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel14Layout.createSequentialGroup()
                                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(cimiento2Radio)
                                    .addComponent(cimiento1Radio))
                                .addGap(149, 149, 149)
                                .addComponent(desplazamientoCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(67, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel12)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(claseEstructuraCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(jLabel13)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(34, 34, 34)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15))
                .addGap(18, 18, 18)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cimiento1Radio)
                    .addComponent(desplazamientoCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cimiento2Radio)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)
                .addComponent(setStructureEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(49, 49, 49))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Structure", jPanel3);

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Info"));
        jPanel11.setToolTipText("Info");
        jPanel11.setName("Info"); // NOI18N

        String urlq=info.getInfo("quake");
        quakejEditor.setContentType("text/html");
        quakejEditor.setText(urlq);
        jScrollPane6.setViewportView(quakejEditor);

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6)
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
        );

        jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "Quake Characteristics"));

        jLabel8.setText("Magnitud Terremoto");

        jLabel9.setText("Distancia");

        jLabel10.setText("PGA");

        jLabel11.setText("Demanda Sismica");

        magnitudTerremotoList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Ninguno", "State0", "State1", "State2", "State3", "State4", "State5", "State6", "State7", "State8" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        magnitudTerremotoList.setSelectedIndex(0);
        jScrollPane10.setViewportView(magnitudTerremotoList);

        distanciaMuyAlejadoRadio.setText("muy_alejado");
        distanciaMuyAlejadoRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                distanciaMuyAlejadoRadioActionPerformed(evt);
            }
        });

        distanciaAlejadoRadio.setText("alejado");
        distanciaAlejadoRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                distanciaAlejadoRadioActionPerformed(evt);
            }
        });

        distanciaCercanoRadio.setText("cercano");
        distanciaCercanoRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                distanciaCercanoRadioActionPerformed(evt);
            }
        });

        pgaList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Ninguno", "muy_alta", "alta", "mediano", "bajo" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        pgaList.setSelectedIndex(0);
        jScrollPane11.setViewportView(pgaList);

        demandaSismicaCompletoRadio.setText("completo");
        demandaSismicaCompletoRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demandaSismicaCompletoRadioActionPerformed(evt);
            }
        });

        demandaSismicaSeveroRadio.setText("severo");
        demandaSismicaSeveroRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demandaSismicaSeveroRadioActionPerformed(evt);
            }
        });

        demandaSismicaModeradoRadio.setText("moderado");
        demandaSismicaModeradoRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demandaSismicaModeradoRadioActionPerformed(evt);
            }
        });

        demandaSismicaLigeroRadio.setText("ligero");
        demandaSismicaLigeroRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demandaSismicaLigeroRadioActionPerformed(evt);
            }
        });

        setQuakeEvidenceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/setevidence.gif"))); // NOI18N
        setQuakeEvidenceButton.setToolTipText("Ingresar Evidencia");
        setQuakeEvidenceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                setQuakeEvidenceButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(demandaSismicaLigeroRadio)
                            .addComponent(demandaSismicaModeradoRadio)
                            .addComponent(demandaSismicaSeveroRadio))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 212, Short.MAX_VALUE)
                        .addComponent(setQuakeEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(53, 53, 53))
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(demandaSismicaCompletoRadio)
                            .addComponent(jLabel11)
                            .addComponent(jLabel10)
                            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel9)
                                .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                                .addComponent(jLabel8)
                                .addGroup(jPanel15Layout.createSequentialGroup()
                                    .addComponent(distanciaMuyAlejadoRadio)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(distanciaAlejadoRadio)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(distanciaCercanoRadio))
                                .addComponent(jScrollPane11)))
                        .addContainerGap(162, Short.MAX_VALUE))))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(setQuakeEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(19, 19, 19)
                        .addComponent(jLabel9)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(distanciaMuyAlejadoRadio)
                            .addComponent(distanciaAlejadoRadio)
                            .addComponent(distanciaCercanoRadio))
                        .addGap(18, 18, 18)
                        .addComponent(jLabel10)
                        .addGap(25, 25, 25)
                        .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel11)
                        .addGap(13, 13, 13)
                        .addComponent(demandaSismicaCompletoRadio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(demandaSismicaSeveroRadio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(demandaSismicaModeradoRadio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(demandaSismicaLigeroRadio)))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Quake", jPanel4);

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Info"));
        jPanel12.setToolTipText("Info");
        jPanel12.setName("Info"); // NOI18N

        String urll=info.getInfo("land");
        landjEditor.setContentType("text/html");
        landjEditor.setText(urll);
        jScrollPane7.setViewportView(landjEditor);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 382, Short.MAX_VALUE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
        );

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "Ground Characteristics"));

        tipoSueloList.setBackground(java.awt.SystemColor.controlHighlight);
        tipoSueloList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Ninguno", "Arcilla", "Limo", "Grava", "Roca", "Arena" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        tipoSueloList.setToolTipText("Tipo de Suelo");
        tipoSueloList.setSelectedIndex(0);
        jScrollPane9.setViewportView(tipoSueloList);

        jLabel2.setText("Tipo de Suelo");

        capacidadPortante1Radio.setText("CP1");
        capacidadPortante1Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                capacidadPortante1RadioActionPerformed(evt);
            }
        });

        capacidadPortante2Radio.setText("CP2");
        capacidadPortante2Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                capacidadPortante2RadioActionPerformed(evt);
            }
        });

        jLabel3.setText("Capacidad Portante");

        jLabel4.setText("Limite Liquido");

        jLabel5.setText("Contenido Arcilla");

        jLabel6.setText("Licuefacción");

        jLabel7.setText("Respuesta del Suelo");

        limiteLiquido1Radio.setText("LL01");
        limiteLiquido1Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limiteLiquido1RadioActionPerformed(evt);
            }
        });

        limiteLiquido2Radio.setText("LL02");
        limiteLiquido2Radio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limiteLiquido2RadioActionPerformed(evt);
            }
        });

        contenidoArcillaCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select", "Contiene", "No_Contiene" }));

        licuefaccionCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select", "Si", "No" }));

        respuestaSueloLicuefaccionRadio.setText("Presenta_Licuefaccion");
        respuestaSueloLicuefaccionRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                respuestaSueloLicuefaccionRadioActionPerformed(evt);
            }
        });

        respuestaSueloAmplificacionRadio.setText("Presenta_Amplificacion");
        respuestaSueloAmplificacionRadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                respuestaSueloAmplificacionRadioActionPerformed(evt);
            }
        });

        setLandEvidenceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/setevidence.gif"))); // NOI18N
        setLandEvidenceButton.setToolTipText("Ingresar Evidencia");
        setLandEvidenceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                setLandEvidenceButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel4)
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(contenidoArcillaCombo, 0, 110, Short.MAX_VALUE)
                                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(limiteLiquido1Radio)
                                        .addComponent(jLabel5))
                                    .addComponent(jLabel7)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(respuestaSueloLicuefaccionRadio)
                                        .addComponent(respuestaSueloAmplificacionRadio)))
                                .addGap(2, 2, 2)))
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel16Layout.createSequentialGroup()
                                    .addGap(98, 98, 98)
                                    .addComponent(jLabel6))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel16Layout.createSequentialGroup()
                                        .addGap(90, 90, 90)
                                        .addComponent(licuefaccionCombo, 0, 145, Short.MAX_VALUE))
                                    .addGroup(jPanel16Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(limiteLiquido2Radio)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 86, Short.MAX_VALUE)
                                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel3)
                                            .addGroup(jPanel16Layout.createSequentialGroup()
                                                .addComponent(capacidadPortante1Radio)
                                                .addGap(18, 18, 18)
                                                .addComponent(capacidadPortante2Radio))))))
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(setLandEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(66, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(177, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel3))
                .addGap(12, 12, 12)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(capacidadPortante1Radio)
                    .addComponent(capacidadPortante2Radio)
                    .addComponent(limiteLiquido2Radio)
                    .addComponent(limiteLiquido1Radio))
                .addGap(29, 29, 29)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(contenidoArcillaCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(licuefaccionCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jLabel7)
                        .addGap(18, 18, 18)
                        .addComponent(respuestaSueloLicuefaccionRadio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(respuestaSueloAmplificacionRadio)
                        .addContainerGap(92, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(setLandEvidenceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(42, 42, 42))))
        );

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Land", jPanel5);

        jPanel13.setBorder(new javax.swing.border.MatteBorder(null));
        jPanel13.setToolTipText("Info");
        jPanel13.setName("Info"); // NOI18N

        socSatelital.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images-suelo/soc_sat.jpg"))); // NOI18N
        socSatelital.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        socSatelital.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                socSatelitalMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                socSatelitalMouseEntered(evt);
            }
        });
        socSatelital.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                socSatelitalMouseMoved(evt);
            }
        });

        prevTableButton.setText("<");

        nextTableButton.setText(">");

        jScrollPane15.setViewportView(sicFisicoText1);

        socSatelitalText.setContentType("text/html");
        jScrollPane8.setViewportView(socSatelitalText);

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 405, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(socSatelital)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(prevTableButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(nextTableButton)))
                .addContainerGap())
            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addGap(0, 167, Short.MAX_VALUE)
                    .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 167, Short.MAX_VALUE)))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(socSatelital, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prevTableButton)
                    .addComponent(nextTableButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addGap(0, 242, Short.MAX_VALUE)
                    .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 242, Short.MAX_VALUE)))
        );

        jPanel17.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        socFisico.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images-suelo/soc_fis.jpg"))); // NOI18N
        socFisico.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        socFisico.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                socFisicoMouseClicked(evt);
            }
        });
        socFisico.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                socFisicoMouseMoved(evt);
            }
        });

        prevImagButton.setText("<");

        nextImagButton.setText(">");

        socFisicoText.setContentType("text/html");
        jScrollPane16.setViewportView(socFisicoText);

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                        .addComponent(prevImagButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(nextImagButton)
                        .addGap(26, 26, 26))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                        .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addComponent(socFisico, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE)))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(socFisico, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prevImagButton)
                    .addComponent(nextImagButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, 433, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Analysis", jPanel6);

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "Resultados"));

        jPanel19.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jScrollPane13.setViewportView(ResultEditor);

        riesgoInsignificanteBar.setBackground(new java.awt.Color(255, 0, 0));
        riesgoInsignificanteBar.setForeground(new java.awt.Color(0, 102, 51));
        riesgoInsignificanteBar.setStringPainted(true);
        riesgoInsignificanteBar.setStringPainted(true);
        riesgoInsignificanteBar.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                riesgoInsignificanteBarStateChanged(evt);
            }
        });

        jLabel19.setText("Insignificante");

        jLabel20.setText("Riesgo");

        jLabel21.setText("Ligero");

        riesgoLigeroBar.setBackground(new java.awt.Color(255, 175, 175));
        riesgoLigeroBar.setForeground(new java.awt.Color(103, 108, 9));
        riesgoLigeroBar.setStringPainted(true);
        riesgoLigeroBar.setStringPainted(true);
        riesgoLigeroBar.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                riesgoLigeroBarStateChanged(evt);
            }
        });

        jLabel22.setText("Moderado");

        riesgoModeradoBar.setForeground(new java.awt.Color(4, 91, 200));
        riesgoModeradoBar.setStringPainted(true);
        riesgoModeradoBar.setStringPainted(true);
        riesgoModeradoBar.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                riesgoModeradoBarStateChanged(evt);
            }
        });

        jLabel23.setText("Severo");

        riesgoSeveroBar.setForeground(java.awt.Color.magenta);
        riesgoSeveroBar.setStringPainted(true);
        riesgoSeveroBar.setStringPainted(true);
        riesgoSeveroBar.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                riesgoSeveroBarStateChanged(evt);
            }
        });

        riesgoTotalBar.setForeground(java.awt.Color.red);
        riesgoTotalBar.setStringPainted(true);
        riesgoTotalBar.setStringPainted(true);
        riesgoTotalBar.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                riesgoTotalBarStateChanged(evt);
            }
        });

        jLabel24.setText("Colapso");

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel19)
                            .addComponent(riesgoInsignificanteBar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21)
                            .addComponent(riesgoLigeroBar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22)
                            .addComponent(riesgoModeradoBar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23)
                            .addComponent(riesgoSeveroBar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(riesgoTotalBar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel24)))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel20))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(47, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addComponent(jLabel20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel19)
                .addGap(4, 4, 4)
                .addComponent(riesgoInsignificanteBar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(riesgoLigeroBar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(riesgoModeradoBar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                .addComponent(jLabel23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(riesgoSeveroBar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel24)
                .addGap(8, 8, 8)
                .addComponent(riesgoTotalBar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel20.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        evalTextEditor.setContentType("text/html");
        jScrollPane14.setViewportView(evalTextEditor);

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 413, Short.MAX_VALUE)
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane2.addTab("Results", jPanel7);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 893, Short.MAX_VALUE)
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 530, Short.MAX_VALUE)
        );

        jTabbedPane2.addTab("Offer", jPanel8);

        ButtonMapa.setText("Map");
        ButtonMapa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ButtonMapaActionPerformed(evt);
            }
        });

        loadjButton.setText("Load");
        loadjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                loadjButtonActionPerformed(evt);
            }
        });

        jButton1.setText("Picture");

        javax.swing.GroupLayout leftjPanelLayout = new javax.swing.GroupLayout(leftjPanel);
        leftjPanel.setLayout(leftjPanelLayout);
        leftjPanelLayout.setHorizontalGroup(
            leftjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leftjPanelLayout.createSequentialGroup()
                .addGroup(leftjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, leftjPanelLayout.createSequentialGroup()
                        .addComponent(buttonsjPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(ButtonMapa, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(loadjButton, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 898, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        leftjPanelLayout.setVerticalGroup(
            leftjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leftjPanelLayout.createSequentialGroup()
                .addGroup(leftjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(leftjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(ButtonMapa, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(loadjButton, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(buttonsjPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 558, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout mainjPanelLayout = new javax.swing.GroupLayout(mainjPanel);
        mainjPanel.setLayout(mainjPanelLayout);
        mainjPanelLayout.setHorizontalGroup(
            mainjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainjPanelLayout.createSequentialGroup()
                .addComponent(leftjPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 902, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        mainjPanelLayout.setVerticalGroup(
            mainjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(leftjPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        fileMenu.setMnemonic('f');
        fileMenu.setText("File");

        openMenuItem.setMnemonic('o');
        openMenuItem.setText("Open");
        fileMenu.add(openMenuItem);

        saveMenuItem.setMnemonic('s');
        saveMenuItem.setText("Save");
        fileMenu.add(saveMenuItem);

        saveAsMenuItem.setMnemonic('a');
        saveAsMenuItem.setText("Save As ...");
        saveAsMenuItem.setDisplayedMnemonicIndex(5);
        fileMenu.add(saveAsMenuItem);

        exitMenuItem.setMnemonic('x');
        exitMenuItem.setText("Exit");
        exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitMenuItemActionPerformed(evt);
            }
        });
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        editMenu.setMnemonic('e');
        editMenu.setText("Edit");

        cutMenuItem.setMnemonic('t');
        cutMenuItem.setText("Cut");
        editMenu.add(cutMenuItem);

        copyMenuItem.setMnemonic('y');
        copyMenuItem.setText("Copy");
        editMenu.add(copyMenuItem);

        pasteMenuItem.setMnemonic('p');
        pasteMenuItem.setText("Paste");
        editMenu.add(pasteMenuItem);

        deleteMenuItem.setMnemonic('d');
        deleteMenuItem.setText("Delete");
        editMenu.add(deleteMenuItem);

        menuBar.add(editMenu);

        helpMenu.setMnemonic('h');
        helpMenu.setText("Help");

        contentsMenuItem.setMnemonic('c');
        contentsMenuItem.setText("Contents");
        helpMenu.add(contentsMenuItem);

        aboutMenuItem.setMnemonic('a');
        aboutMenuItem.setText("About");
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainjPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 912, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(mainjPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 647, Short.MAX_VALUE))
        );

        mainjPanel.getAccessibleContext().setAccessibleName("");

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        System.exit(0);
    }//GEN-LAST:event_exitMenuItemActionPerformed

private void netjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_netjButtonActionPerformed
// TODO add your handling code here:
    Runtime aplicacion = Runtime.getRuntime(); 
    try{
        aplicacion.exec("C:/Archivos de programa/GeNIe 2.0/genie.exe "+sigeris.getUrlNet()); 
    }
    catch(Exception e)
{
System.out.println(e);
}
}//GEN-LAST:event_netjButtonActionPerformed

private void loadjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loadjButtonActionPerformed
// TODO add your handling code here:
   try
   {
   JFileChooser fc=new JFileChooser(System.getProperty("user.dir"));
   fc.showOpenDialog(this);
   File Abrir=fc.getSelectedFile(); //Devuelve el File que vamos a leerName
   sigeris.setNet(Abrir.getAbsolutePath());
  }
  catch(Exception e){
    System.out.println(e);
   }
}//GEN-LAST:event_loadjButtonActionPerformed

private void netjButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_netjButton2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_netjButton2ActionPerformed

private void clearEvidenceButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearEvidenceButtonMouseEntered
// TODO add your handling code here:
}//GEN-LAST:event_clearEvidenceButtonMouseEntered

private void ButtonMapaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ButtonMapaActionPerformed
// TODO add your handling code here:
    sigeris.setLocation(locationjText.getText());
    setSatelital();
    setMapa();
}//GEN-LAST:event_ButtonMapaActionPerformed

private void cimiento1RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cimiento1RadioActionPerformed
// TODO add your handling code here:
    if(cimiento2Radio.isSelected()) cimiento2Radio.setSelected(false);
}//GEN-LAST:event_cimiento1RadioActionPerformed

private void cimiento2RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cimiento2RadioActionPerformed
// TODO add your handling code here:
    if(cimiento1Radio.isSelected()) cimiento1Radio.setSelected(false);
}//GEN-LAST:event_cimiento2RadioActionPerformed

private void setStructureEvidenceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setStructureEvidenceButtonActionPerformed
// TODO add your handling code here:
    String nodeClaseEstructura="Clase_Estructura",nodePisoArea="Piso_Area", nodeCimiento="Cimiento", nodeDesplazamiento="Desplazamiento";
    /*
    String text="<p>";
    text+=claseEstructuraCombo.getSelectedItem();
    text+=pisoAreaList.getSelectedValue();
    text+=cimiento1Radio.getText();
    text+="</p>";
    structurejEditor.setText(text);
    */
    if(!claseEstructuraCombo.getSelectedItem().equals("Select"))
        sigeris.setEvidence(nodeClaseEstructura,(String)claseEstructuraCombo.getSelectedItem());
    if(!pisoAreaList.getSelectedValue().equals("Ninguno"))
        sigeris.setEvidence(nodePisoArea, (String)pisoAreaList.getSelectedValue());
    if(cimiento1Radio.isSelected()||cimiento2Radio.isSelected())
        sigeris.setEvidence(nodeCimiento, cimiento1Radio.getText());
    if(cimiento2Radio.isSelected())
        sigeris.setEvidence(nodeCimiento, cimiento2Radio.getText());
    if(!desplazamientoCombo.getSelectedItem().equals("Select"))
        sigeris.setEvidence(nodeDesplazamiento, (String)desplazamientoCombo.getSelectedItem());
}//GEN-LAST:event_setStructureEvidenceButtonActionPerformed

private void setQuakeEvidenceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setQuakeEvidenceButtonActionPerformed
// TODO add your handling code here:
    String nodeMagnitudTerremoto="Magnitud_Terremoto", nodeDistancia="Distancia", nodePga="Pga", nodeDemandaSismica="Demanda_Sismica";
    if(!magnitudTerremotoList.getSelectedValue().equals("Ninguno"))
        sigeris.setEvidence(nodeMagnitudTerremoto,(String)magnitudTerremotoList.getSelectedValue() );
    if(distanciaAlejadoRadio.isSelected())
        sigeris.setEvidence(nodeDistancia, distanciaAlejadoRadio.getText());
    if(distanciaMuyAlejadoRadio.isSelected())
        sigeris.setEvidence(nodeDistancia, distanciaMuyAlejadoRadio.getText());
    if(distanciaCercanoRadio.isSelected())
        sigeris.setEvidence(nodeDistancia, distanciaCercanoRadio.getText());
    if(!pgaList.getSelectedValue().equals("Ninguno"))
        sigeris.setEvidence(nodePga,(String)pgaList.getSelectedValue() );
    if(demandaSismicaCompletoRadio.isSelected())
        sigeris.setEvidence(nodeDemandaSismica, demandaSismicaCompletoRadio.getText());
    if(demandaSismicaLigeroRadio.isSelected())
        sigeris.setEvidence(nodeDemandaSismica, demandaSismicaLigeroRadio.getText());
     if(demandaSismicaModeradoRadio.isSelected())
        sigeris.setEvidence(nodeDemandaSismica, demandaSismicaModeradoRadio.getText());
     if(demandaSismicaSeveroRadio.isSelected())
        sigeris.setEvidence(nodeDemandaSismica, demandaSismicaSeveroRadio.getText());
     
}//GEN-LAST:event_setQuakeEvidenceButtonActionPerformed

private void demandaSismicaCompletoRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demandaSismicaCompletoRadioActionPerformed
// TODO add your handling code here:
    if(demandaSismicaLigeroRadio.isSelected()) demandaSismicaLigeroRadio.setSelected(false);
    if(demandaSismicaModeradoRadio.isSelected()) demandaSismicaModeradoRadio.setSelected(false);
    if(demandaSismicaSeveroRadio.isSelected()) demandaSismicaSeveroRadio.setSelected(false);
    
}//GEN-LAST:event_demandaSismicaCompletoRadioActionPerformed

private void distanciaMuyAlejadoRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_distanciaMuyAlejadoRadioActionPerformed
// TODO add your handling code here:
    if(distanciaAlejadoRadio.isSelected()) distanciaAlejadoRadio.setSelected(false);
    if(distanciaCercanoRadio.isSelected()) distanciaCercanoRadio.setSelected(false);
}//GEN-LAST:event_distanciaMuyAlejadoRadioActionPerformed

private void distanciaAlejadoRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_distanciaAlejadoRadioActionPerformed
// TODO add your handling code here:
    if(distanciaMuyAlejadoRadio.isSelected()) distanciaMuyAlejadoRadio.setSelected(false);
    if(distanciaCercanoRadio.isSelected()) distanciaCercanoRadio.setSelected(false);
}//GEN-LAST:event_distanciaAlejadoRadioActionPerformed

private void distanciaCercanoRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_distanciaCercanoRadioActionPerformed
// TODO add your handling code here:
    if(distanciaAlejadoRadio.isSelected()) distanciaAlejadoRadio.setSelected(false);
    if(distanciaMuyAlejadoRadio.isSelected()) distanciaMuyAlejadoRadio.setSelected(false);
}//GEN-LAST:event_distanciaCercanoRadioActionPerformed

private void demandaSismicaSeveroRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demandaSismicaSeveroRadioActionPerformed
// TODO add your handling code here:
    if(demandaSismicaLigeroRadio.isSelected()) demandaSismicaLigeroRadio.setSelected(false);
    if(demandaSismicaModeradoRadio.isSelected()) demandaSismicaModeradoRadio.setSelected(false);
    if(demandaSismicaCompletoRadio.isSelected()) demandaSismicaCompletoRadio.setSelected(false);
}//GEN-LAST:event_demandaSismicaSeveroRadioActionPerformed

private void demandaSismicaModeradoRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demandaSismicaModeradoRadioActionPerformed
// TODO add your handling code here:
    if(demandaSismicaLigeroRadio.isSelected()) demandaSismicaLigeroRadio.setSelected(false);
    if(demandaSismicaSeveroRadio.isSelected()) demandaSismicaSeveroRadio.setSelected(false);
    if(demandaSismicaCompletoRadio.isSelected()) demandaSismicaCompletoRadio.setSelected(false);
}//GEN-LAST:event_demandaSismicaModeradoRadioActionPerformed

private void demandaSismicaLigeroRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demandaSismicaLigeroRadioActionPerformed
// TODO add your handling code here:
    if(demandaSismicaModeradoRadio.isSelected()) demandaSismicaModeradoRadio.setSelected(false);
    if(demandaSismicaSeveroRadio.isSelected()) demandaSismicaSeveroRadio.setSelected(false);
    if(demandaSismicaCompletoRadio.isSelected()) demandaSismicaCompletoRadio.setSelected(false);
}//GEN-LAST:event_demandaSismicaLigeroRadioActionPerformed

private void setLandEvidenceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setLandEvidenceButtonActionPerformed
// TODO add your handling code here:
    String nodeTipoSuelo="Tipo_de_Suelo", nodeLimiteLiquido="Limite_Liquido",nodeContenidoArcilla="Contenido_Arcilla", nodeLicuefaccion="Licuefaccion" ;
    String nodeRespuestaSuelo="RespuestaSuelo", nodeCapacidadPortante="CapacidadPortante";
    if(!licuefaccionCombo.getSelectedItem().equals("Select"))
        sigeris.setEvidence(nodeLicuefaccion,(String)licuefaccionCombo.getSelectedItem());
    if(!contenidoArcillaCombo.getSelectedItem().equals("Select"))
        sigeris.setEvidence(nodeContenidoArcilla,(String)contenidoArcillaCombo.getSelectedItem());
    if(!tipoSueloList.getSelectedValue().equals("Ninguno"))
        sigeris.setEvidence(nodeTipoSuelo, (String)tipoSueloList.getSelectedValue());
    if(limiteLiquido1Radio.isSelected())
        sigeris.setEvidence(nodeLimiteLiquido, limiteLiquido1Radio.getText());
    if(limiteLiquido2Radio.isSelected())
        sigeris.setEvidence(nodeLimiteLiquido, limiteLiquido2Radio.getText());
    if(capacidadPortante1Radio.isSelected())
        sigeris.setEvidence(nodeCapacidadPortante, capacidadPortante1Radio.getText());
    if(capacidadPortante2Radio.isSelected())
        sigeris.setEvidence(nodeCapacidadPortante, capacidadPortante2Radio.getText());
    if(respuestaSueloAmplificacionRadio.isSelected())
        sigeris.setEvidence(nodeRespuestaSuelo, respuestaSueloAmplificacionRadio.getText());
    if(respuestaSueloLicuefaccionRadio.isSelected())
        sigeris.setEvidence(nodeRespuestaSuelo, respuestaSueloLicuefaccionRadio.getText());
}//GEN-LAST:event_setLandEvidenceButtonActionPerformed

private void limiteLiquido1RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limiteLiquido1RadioActionPerformed
// TODO add your handling code here:
    if(limiteLiquido2Radio.isSelected())limiteLiquido2Radio.setSelected(false);
}//GEN-LAST:event_limiteLiquido1RadioActionPerformed

private void limiteLiquido2RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limiteLiquido2RadioActionPerformed
// TODO add your handling code here:
    if(limiteLiquido1Radio.isSelected())limiteLiquido1Radio.setSelected(false);
}//GEN-LAST:event_limiteLiquido2RadioActionPerformed

private void capacidadPortante1RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_capacidadPortante1RadioActionPerformed
// TODO add your handling code here:
    if(capacidadPortante2Radio.isSelected())capacidadPortante2Radio.setSelected(false);
}//GEN-LAST:event_capacidadPortante1RadioActionPerformed

private void capacidadPortante2RadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_capacidadPortante2RadioActionPerformed
// TODO add your handling code here:
     if(capacidadPortante1Radio.isSelected())capacidadPortante1Radio.setSelected(false);
}//GEN-LAST:event_capacidadPortante2RadioActionPerformed

private void respuestaSueloLicuefaccionRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_respuestaSueloLicuefaccionRadioActionPerformed
// TODO add your handling code here:
    if(respuestaSueloAmplificacionRadio.isSelected())respuestaSueloAmplificacionRadio.setSelected(false);
}//GEN-LAST:event_respuestaSueloLicuefaccionRadioActionPerformed

private void respuestaSueloAmplificacionRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_respuestaSueloAmplificacionRadioActionPerformed
// TODO add your handling code here:
    if(respuestaSueloLicuefaccionRadio.isSelected())respuestaSueloLicuefaccionRadio.setSelected(false);
}//GEN-LAST:event_respuestaSueloAmplificacionRadioActionPerformed

private void riesgoInsignificanteBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_riesgoInsignificanteBarStateChanged
// TODO add your handling code here:
    riesgoInsignificanteBar.setString("Riesgo");
}//GEN-LAST:event_riesgoInsignificanteBarStateChanged

private void runjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_runjButtonActionPerformed
// TODO add your handling code here:
    String nodeRiesgo="Dano";
    
    double vali=sigeris.getValueNode(nodeRiesgo,"Insignificante")*100;
    riesgoInsignificanteBar.setValue((int)vali);
    riesgoInsignificanteBar.setString(" "+vali+"%");
    
    double vall=sigeris.getValueNode(nodeRiesgo,"Ligero")*100;
    riesgoLigeroBar.setValue((int)vall);
    riesgoLigeroBar.setString(" "+vall+"%");
    
    double vals=sigeris.getValueNode(nodeRiesgo,"Severo")*100;
    riesgoSeveroBar.setValue((int)vals);
    riesgoSeveroBar.setString(" "+vals+"%");
    
    double valm=sigeris.getValueNode(nodeRiesgo,"Moderado")*100;
    riesgoModeradoBar.setValue((int)valm);
    riesgoModeradoBar.setString(" "+valm+"%");
    
    double valt=sigeris.getValueNode(nodeRiesgo,"Total")*100;
    riesgoTotalBar.setValue((int)valt);
    riesgoTotalBar.setString(" "+valt+"%");
    
    double max=Math.max(vali, Math.max(vall, Math.max(vals, Math.max(valm, valt))));
    if(max==vali)evalTextEditor.setText(sigeris.getTextEval("Insignificante"));
    if(max==vall)evalTextEditor.setText(sigeris.getTextEval("Ligero"));
    if(max==vals)evalTextEditor.setText(sigeris.getTextEval("Severo"));
    if(max==valm)evalTextEditor.setText(sigeris.getTextEval("Moderado"));
    if(max==valt)evalTextEditor.setText(sigeris.getTextEval("Total"));
    
    ResultEditor.setContentType("text/html");
    ResultEditor.setText(sigeris.getResultText());
}//GEN-LAST:event_runjButtonActionPerformed

private void riesgoLigeroBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_riesgoLigeroBarStateChanged
// TODO add your handling code here:
}//GEN-LAST:event_riesgoLigeroBarStateChanged

private void riesgoModeradoBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_riesgoModeradoBarStateChanged
// TODO add your handling code here:
}//GEN-LAST:event_riesgoModeradoBarStateChanged

private void riesgoSeveroBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_riesgoSeveroBarStateChanged
// TODO add your handling code here:
}//GEN-LAST:event_riesgoSeveroBarStateChanged

private void clearEvidenceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearEvidenceButtonActionPerformed
// TODO add your handling code here:
    sigeris.clearAllEvidence();
}//GEN-LAST:event_clearEvidenceButtonActionPerformed

private void riesgoTotalBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_riesgoTotalBarStateChanged
// TODO add your handling code here:
}//GEN-LAST:event_riesgoTotalBarStateChanged

private void socSatelitalMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_socSatelitalMouseEntered
// TODO add your handling code here:
    socSatelital.setToolTipText(evt.getX()+" "+evt.getY());
}//GEN-LAST:event_socSatelitalMouseEntered

private void socSatelitalMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_socSatelitalMouseMoved
// TODO add your handling code here:
    socSatelital.setToolTipText(evt.getX()+" "+evt.getY());
}//GEN-LAST:event_socSatelitalMouseMoved

private void socFisicoMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_socFisicoMouseMoved
// TODO add your handling code here:
   socFisico.setToolTipText(evt.getX()+" "+evt.getY());
}//GEN-LAST:event_socFisicoMouseMoved

private void socFisicoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_socFisicoMouseClicked
// TODO add your handling code here:
    socFisicoText.setText(sigeris.getEvalFisico(evt.getX(), evt.getY()));
}//GEN-LAST:event_socFisicoMouseClicked

private void socSatelitalMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_socSatelitalMouseClicked
// TODO add your handling code here:
    socSatelitalText.setText(sigeris.getEvalSatelital(evt.getX(), evt.getY()));
}//GEN-LAST:event_socSatelitalMouseClicked
private void setSatelital(){
    pictureContainer.setContentType("text/html");
    pictureContainer.setText(sigeris.getSatelital());
}
private void setMapa(){
    mapContainer.setContentType("text/html");
    mapContainer.setText(sigeris.getMapa());
}

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(UISigeris.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(UISigeris.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(UISigeris.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(UISigeris.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new UISigeris().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton ButtonMapa;
    private javax.swing.JEditorPane ResultEditor;
    private javax.swing.JMenuItem aboutMenuItem;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JPanel buttonsjPanel;
    private javax.swing.JCheckBox capacidadPortante1Radio;
    private javax.swing.JCheckBox capacidadPortante2Radio;
    private javax.swing.JRadioButton cimiento1Radio;
    private javax.swing.JRadioButton cimiento2Radio;
    private javax.swing.JComboBox claseEstructuraCombo;
    private javax.swing.JButton clearEvidenceButton;
    private javax.swing.JComboBox contenidoArcillaCombo;
    private javax.swing.JMenuItem contentsMenuItem;
    private javax.swing.JMenuItem copyMenuItem;
    private javax.swing.JMenuItem cutMenuItem;
    private javax.swing.JMenuItem deleteMenuItem;
    private javax.swing.JRadioButton demandaSismicaCompletoRadio;
    private javax.swing.JRadioButton demandaSismicaLigeroRadio;
    private javax.swing.JRadioButton demandaSismicaModeradoRadio;
    private javax.swing.JRadioButton demandaSismicaSeveroRadio;
    private javax.swing.JComboBox desplazamientoCombo;
    private javax.swing.JRadioButton distanciaAlejadoRadio;
    private javax.swing.JRadioButton distanciaCercanoRadio;
    private javax.swing.JRadioButton distanciaMuyAlejadoRadio;
    private javax.swing.JMenu editMenu;
    private javax.swing.JEditorPane evalTextEditor;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JEditorPane googleMaps;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JButton jButton1;
    private javax.swing.JInternalFrame jInternalFrame1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JEditorPane landjEditor;
    private javax.swing.JPanel leftjPanel;
    private javax.swing.JComboBox licuefaccionCombo;
    private javax.swing.JCheckBox limiteLiquido1Radio;
    private javax.swing.JCheckBox limiteLiquido2Radio;
    private javax.swing.JButton loadjButton;
    private javax.swing.JEditorPane locationjEditor;
    private javax.swing.JTextField locationjText;
    private javax.swing.JList magnitudTerremotoList;
    private javax.swing.JPanel mainjPanel;
    private javax.swing.JEditorPane mapContainer;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton netjButton;
    private javax.swing.JButton netjButton2;
    private javax.swing.JButton nextImagButton;
    private javax.swing.JButton nextTableButton;
    private javax.swing.JMenuItem openMenuItem;
    private javax.swing.JMenuItem pasteMenuItem;
    private javax.swing.JList pgaList;
    private javax.swing.JEditorPane pictureContainer;
    private javax.swing.JList pisoAreaList;
    private javax.swing.JButton prevImagButton;
    private javax.swing.JButton prevTableButton;
    private javax.swing.JEditorPane quakejEditor;
    private javax.swing.JRadioButton respuestaSueloAmplificacionRadio;
    private javax.swing.JRadioButton respuestaSueloLicuefaccionRadio;
    private javax.swing.JProgressBar riesgoInsignificanteBar;
    private javax.swing.JProgressBar riesgoLigeroBar;
    private javax.swing.JProgressBar riesgoModeradoBar;
    private javax.swing.JProgressBar riesgoSeveroBar;
    private javax.swing.JProgressBar riesgoTotalBar;
    private javax.swing.JButton runjButton;
    private javax.swing.JMenuItem saveAsMenuItem;
    private javax.swing.JMenuItem saveMenuItem;
    private javax.swing.JButton setLandEvidenceButton;
    private javax.swing.JButton setQuakeEvidenceButton;
    private javax.swing.JButton setStructureEvidenceButton;
    private javax.swing.JEditorPane sicFisicoText1;
    private javax.swing.JLabel socFisico;
    private javax.swing.JEditorPane socFisicoText;
    private javax.swing.JLabel socSatelital;
    private javax.swing.JEditorPane socSatelitalText;
    private javax.swing.JEditorPane structurejEditor;
    private javax.swing.JList tipoSueloList;
    // End of variables declaration//GEN-END:variables
    private Information info;
    private SIGERIS sigeris;
}
